<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="b" uri="/b2b-tags"%>
<script>
/* setFocus(6); */
</script>
<div id="container">
	<div class="crumb">
		您现在的位置：
	 <a href="<c:url value="/" />">宣城医药在线</a> &gt; 
	 <a href="<c:url value="/views/jsp/cms/help/index_d.jsp" />">帮助中心</a>
	  &gt; 
	 <c:if test="${param.id ne ''}">
	 	<b:showCmsCategory outResponseAttrName="cmsTypeDetail"  getType="detail" newsTypeId="${param.id}"/>
	 </c:if>
	 <c:if test="${not empty cmsTypeDetail.parentName}">
	 	<a href="#">${cmsTypeDetail.parentName }</a>&gt; 
	 </c:if>
	 <span>${cmsTypeDetail.name }</span>
	 </div>
<div class="clearfix mt10">
<div><!-- 左菜单样式 -->
<link type="text/css" rel="stylesheet" href="<c:url value="/views/jsp/cms/help/lib/left_menu.css" />">
<div class="left_menu">
    <ul id="help_list" class="column clearfix">
 	<b:showCmsCategory outResponseAttrName="categoryHelp"  typeName="联系我们" getType="list"/>
     <li><h2>联系我们</h2>
            <ul>
           
		    <c:forEach items="${categoryHelp}" var="p1">
			    <li><h3 class=""><i>&nbsp;</i>${p1.name }</h3>
			          <ul style="display: none;">
			            <c:forEach items="${p1.children }" var="p2" varStatus="in">
			            	<li id="left_navi${in.index }"><a href="<c:url value="/views/jsp/cms/help/index_d.jsp" />?id=${p2.newsTypeId }"><i>&nbsp;</i>${p2.name }</a></li>
						</c:forEach>
			          </ul>
			    </li>
		    </c:forEach>
            </ul>
        </li>
    </ul>
    <ul class="column2 mt10 clearfix">
    	<b:showCmsCategory outResponseAttrName="categoryAbout"  typeName="关于我们" getType="list"/>
        <li><h2>关于我们</h2>
            <ul class="about_yyw">
	            <c:forEach items="${categoryAbout }" var="p1" varStatus="inc">
	             	<li id="left_navi2${inc.index }" class="on">
						<c:choose>  
						   <c:when test="${p1.newsTypeId==262}">
							   <a href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=GSYP" />"><i>&nbsp;</i>${p1.name }</a>
							   </c:when>  
							   <c:when test="${p1.newsTypeId==264}">
							   <a href="<c:url value="/views/jsp/cms/help/_xc_index_d.jsp?id=RYZS" />"><i>&nbsp;</i>${p1.name }</a>
							   </c:when>  
							   <c:otherwise>
							   <a href="<c:url value="/views/jsp/cms/help/index_d.jsp" />?id=${p1.newsTypeId }"><i>&nbsp;</i>${p1.name }</a>
							   </c:otherwise>
						</c:choose>  
					</li>
				</c:forEach>
            </ul>
        </li>
    </ul>
    
</div>
<script type="text/javascript">
jQuery(function(){
	jQuery("#help_list").find("h3").next("ul").hide();
	jQuery("#help_list").find("h3").click(function(){
		var sub_list2 = jQuery(this).next("ul");
		if(sub_list2.is( ":visible")){
			sub_list2.slideUp();
			jQuery(this).removeClass("on");
		}else{
			jQuery("#help_list").find("h3").removeClass("on");
			jQuery("#help_list").find("h3").next().slideUp();
			sub_list2.slideDown();
			jQuery(this).addClass("on");
		}
	});
        var h = $(".crumb").find("a[href='#']").html();
        $("#help_list h3:contains('"+h+"')").addClass("on");
        $("#help_list h3:contains('"+h+"')").next("ul").show();

})
</script>
</div>
    <div class="right_content">
    	<c:if test="${empty param.id}">
			<div class="com_ttl">购物流程</div>
			<div class="shopping_flow"><img src="<c:url value="/views/jsp/cms/help/lib/img_01.png" />" alt=""></div>
    	</c:if>
    	<c:if test="${not empty param.id}">
    		${cmsTypeDetail.descript }
    	</c:if>
    </div>
  </div>
</div>